<?php 
/**
 * 银行期初款项
 * @copyright   Copyright (c) 2006 - 2010 DZH 友拓软件友拓通
 * @category   	账目信息
 * @package  	Model
 * @author    	李恺弘
 * @version 	2.1,2012-07-22
 */

class BankIniPublicModel extends AbsBankPublicModel {
	/// 模型名与数据表名不一致，需要指定
	protected $tableName 			= 	'bank_center';
	///银行类型
	public $bank_object_type		=	1;///银行期初存款
	///对象类型
	public $comp_type				=	0;

	public $indexTableName	=	'bank_center'; ///列表查询的表的名字
	 
	/// 自动验证设置
	protected $_validate	 =	 array(
										array("bank_id",'require',"require",1), 
										array("delivery_date",'require',"require",1),
										array("money",'require',"require",1),				
										array("money",'money',"money_error",1),
										array("bank_id",'repeat',"repeat",1,'unique','',array('bank_object_type'=>1,'to_hide'=>1)),///验证唯一 
											
	);   
	

}